import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import router from "./router";
import axios from "axios";
import ECharts from 'vue-echarts'
Vue.component('v-chart', ECharts)

Vue.prototype.$ajax=axios
Vue.config.productionTip = false
Vue.use(ElementUI);
new Vue({
  render: h => h(App),
  router:router
}).$mount('#app')
axios.interceptors.request.use(function(config) {
  config.headers.Authorization = window.sessionStorage.token
  return config
})
